<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
	<class name="cn.firstsoft.modules.workflow.domain.WorkflowOperation"
		table="WORKFLOW_OPERATION">
		<comment>集成按钮配置</comment>
		<id name="id" type="integer">
			<column name="id" ><comment>按钮ID</comment></column>
			<generator class="native">
				<param name="sequence">WORKFLOW_OPERATION_ID_SEQ</param>
			</generator>
		</id>
		<property name="name" type="string">
			<column name="name" length="10" ><comment>按钮名称</comment></column>
		</property>
		<property name="pos" type="integer">
			<column name="pos" ><comment>按钮顺序</comment></column>
		</property>
		<property name="alert" type="string">
		    <column name="alert" length="30" ><comment>提示信息</comment></column>
		</property>
		<property name="url" type="string">
			<column name="url" length="500" ><comment>执行动作</comment></column>
		</property>
		<property name="necessary" type="integer">
		    <column name="necessary" ><comment>是否必须执行</comment></column>
		</property>
		<property name="width" type="integer">
			<column name="width" ><comment>弹出页面宽度</comment></column>
		</property>
		<property name="height" type="integer">
			<column name="height" ><comment>弹出页面高度</comment></column>
		</property>
		<property name="createId" type="integer">
			<column name="createId" ><comment>创建人ID</comment></column>
		</property>
		<property name="createTime" type="timestamp">
			<column name="createTime" length="23" ><comment>创建时间</comment></column>
		</property>
		<property name="updateId" type="integer">
			<column name="updateId" ><comment>更新人ID</comment></column>
		</property>
		<property name="updateTime" type="timestamp">
			<column name="updateTime" length="23" ><comment>更新时间</comment></column>
		</property>
		<many-to-one name="workflowStep"
			class="cn.firstsoft.modules.workflow.domain.WorkflowStep" fetch="select">
			<column name="workflow_step_id"></column>
		</many-to-one>
		<many-to-one name="workflowDataSource"
			class="cn.firstsoft.modules.workflow.domain.WorkflowDataSource" fetch="select">
			<column name="workflow_dataSource_id"></column>
		</many-to-one>
	</class>

</hibernate-mapping>